import { App } from 'vue';
import { registerControlProvider } from '@ibiz-template/runtime';
import { withInstall } from '@ibiz-template/vue3-util';
import TileMap from './tile-map';
import { IBizTileMapProvider } from './provider';

export const IBizTileMap = withInstall(TileMap, function (v: App) {
  v.component(TileMap.name, TileMap);
  registerControlProvider(`CUSTOM_TILE_MAP`, () => new IBizTileMapProvider());
});

export default IBizTileMap;
